package com.koron.car.web.driver.bean.vo;

import cn.hutool.core.date.DateUtil;
import com.koron.car.web.driver.bean.entity.Driver;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author twcao
 * @title: DriverVO
 * @projectName GDH_EAM_V2
 * @description: 司机实体
 * @date 2022/3/19:55
 */
@Data
@ApiModel("司机信息")
public class DriverVO extends Driver {

    @ApiModelProperty("申请id")
    private String applyId;

    @ApiModelProperty("申请部门")
    private String applyDeptId;

    @ApiModelProperty("申请部门名称")
    private String applyDeptName;

    @ApiModelProperty("申请日期")
    private String applyDate;

    @ApiModelProperty("现岗位")
    private String postId;

    @ApiModelProperty("申请理由")
    private String applyReason;

    @ApiModelProperty("申请状态，字典：草稿、待审批、已完成")
    private String applyState;

    @ApiModelProperty(value = "当前节点名称")
    private String currNodeName;

    @ApiModelProperty(value = "当前节点处理人")
    private String currNodeUser;

    @ApiModelProperty("是否为提交")
    private Boolean submit = false;

    @ApiModelProperty("兼职司机数据来源：0 正常申请、1 后台导入")
    private Integer source;

    public String getApplyDate() {
        return DateUtil.formatDate(this.getCreateTime());
    }
}
